<template>
	<view class="main-box" :style="{marginTop:backTopMargin + 'px',height:backHeight + 'px'}">
		<image style="z-index: 200;" src="../../static/cart-img/backicon.png" mode="aspectFit" @click="back"></image>
	</view>
</template>

<script>
	export default {
		name:"back-icon",
		data() {
			return {
				
			}
		},
		props:[
			"backTopMargin",
			"backHeight"
		],
		methods:{
			back(){
				console.log("aaa");
				uni.navigateTo({
					url:'/pages/index/index'
				})
			}
		},
		
	}
</script>

<style lang="scss" scoped>
.main-box{
	position: absolute;
	left:20rpx;
	image{
		position: inherit;
		width: 50rpx;
		height: 50rpx;
	}
}
</style>